home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / system / xmailbox.2-s / xmailbox / xmailbox-2.2 / Imakefile.generic < prev    next >
Encoding:
Text File  |  1995-05-17  |  2.9 KB  |  95 lines

  1. XCOMM $Header: /tmp/xmailbox/RCS/Imakefile,v 1.1 1995/05/07 21:48:17 wcheung Exp wcheung $
  2. #------------------------------------------
  3. # Change the XPM include and lib
  4. # directories appropriately.
  5. # Note: you need to have XPM 3.4 or higher!
  6. #------------------------------------------
  7. #
  8.        XPMINCDIR = /usr/applic/X/include/X11
  9. #      XPMINCDIR = /usr/local/include
  10.        XPMLIBDIR = /usr/applic/X/lib/sun4
  11. #      XPMLIBDIR = $(LIBDIR)/xpm
  12.           XPMLIB = -L$(XPMLIBDIR) -lXpm
  13.  
  14. #-------------------------------
  15. # Architecture specific defines
  16. #-------------------------------
  17. #ifdef HPArchitecture
  18. CCOPTIONS = -Aa -D_HPUX_SOURCE
  19. #endif
  20.  
  21. #------------------------------------------
  22. # Comment the following define if you
  23. # want audio support
  24. #------------------------------------------
  25. /* #define NO_AUDIO          /* */
  26.  
  27. #------------------------------------------
  28. # Uncomment the following define if you
  29. # are using a SUN SPARC workstation and
  30. # you would like to use the standard SUN
  31. # audio driver when neither the NCD audio
  32. # server nor the rplay sound server is
  33. # available.
  34. # Note: When you compile using SUN_AUDIO 
  35. #       with either NCD_AUDIO or 
  36. #       RPLAY_AUDIO,  the program will
  37. #       fall back to use the standard SUN
  38. #       audio driver if a rplay or NCD
  39. #       server is not running.
  40. #------------------------------------------
  41. /* SUN_AUDIO = -DSUN_AUDIO   /* */
  42.  
  43. #------------------------------------------
  44. # Uncomment the following define if you
  45. # are using an NCD audio server
  46. #------------------------------------------
  47. /* #define NCD_AUDIO         /* */
  48.  
  49. #------------------------------------------
  50. # Uncomment the following define if you
  51. # are using rplay sound server
  52. #------------------------------------------
  53. /* #define RPLAY_AUDIO       /* */
  54.  
  55. #ifndef NO_AUDIO
  56. #ifdef NCD_AUDIO
  57. #      NCDINCDIR = /usr/local/include
  58. #      NCDLIBDIR = /usr/local/lib
  59.       NCDINCDIR = $(HOME)/include
  60.       NCDLIBDIR = $(HOME)/lib/sun4/clibs
  61.  
  62.          SNDLIB = -L$(NCDLIBDIR) -laudio -lm
  63.        INCLUDES = -I$(XPMINCDIR) -I$(NCDINCDIR) -I/usr/public/include
  64.   EXTRA_DEFINES = -DNCD_AUDIO $(SUN_AUDIO) 
  65. #else
  66. #ifdef RPLAY_AUDIO
  67. #       RPINCDIR = /usr/local/include/rplay
  68. #       RPLIBDIR = /usr/local/lib
  69.        RPINCDIR = $(HOME)/include/rplay
  70.        RPLIBDIR = $(HOME)/lib/sun4/clibs
  71.          SNDLIB = -L$(RPLIBDIR) -lrplay -lm
  72.        INCLUDES = -I$(XPMINCDIR) -I$(RPINCDIR) -I/usr/public/include
  73.   EXTRA_DEFINES = -DRPLAY_AUDIO $(SUN_AUDIO) 
  74. #else
  75.          SNDLIB = 
  76.        INCLUDES = -I$(XPMINCDIR) -I/usr/public/include
  77.   EXTRA_DEFINES = $(SUN_AUDIO)
  78. #endif /* RPLAY_AUDIO */
  79. #endif /* NCD_AUDIO */
  80. #else
  81.          SNDLIB = 
  82.        INCLUDES = -I$(XPMINCDIR)
  83.   EXTRA_DEFINES = -DNO_AUDIO
  84. #endif /* NO_AUDIO */
  85.  
  86.    SRCS = Mailbox.c xmailbox.c 
  87.    OBJS = Mailbox.o xmailbox.o
  88.  
  89.         DEPLIBS = $(DEPXLIB) $(DEPXAWLIB) $(DEPXTOOLLIB) $(DEPXMULIB)
  90. LOCAL_LIBRARIES = $(XPMLIB) $(SNDLIB) $(XLIB) $(XAWLIB) $(XTOOLLIB) $(XMULIB)
  91.  
  92. ComplexProgramTarget(xmailbox)
  93. InstallAppDefaults(XMailbox)
  94.  
  95.